# -*- coding: utf-8 -*-

"""Unimail
@version: 0.14
@license: GPL 3.0 (see "license" file)
@author: Jose A. Jimenez
@contact: jajimc@gmail.com"""

import sys
import os
import gtk

DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))

class DialAbout:
    """Class that represents the About window."""
    def __init__(self):
        self.__gladefile = os.path.join(DIR, "dialabout.glade")
        self.__builder = gtk.Builder()
        self.__builder.add_from_file(self.__gladefile)
        self.__dialog = self.__builder.get_object("dialAbout")
        
        self.__builder.connect_signals(self)

    def run(self):
        self.__dialog.show_all()
        result = self.__dialog.run()
        self.__dialog.destroy()
        return result
